package com.cote.douhahou.pretloan.beans;

import android.text.TextUtils;

import com.google.gson.Gson;

import org.json.JSONObject;

public class LogAkomapalendinInfo {

    private static class In_akomapalendner {
        private static LogAkomapalendinInfo insta_akomapalendnce = new LogAkomapalendinInfo();
    }

    private LogAkomapalendinInfo(){}

    public static LogAkomapalendinInfo getIns_akomapalendtance(){
        return In_akomapalendner.insta_akomapalendnce;
    }

    private String type,token,userId,isAdSource;

    public static void par_akomapalendse(JSONObject objJson){
        In_akomapalendner.insta_akomapalendnce = new Gson().fromJson(objJson.toString(), LogAkomapalendinInfo.class);
    }

    public String getT_akomapalendoken() {
        if (TextUtils.isEmpty(token)) return "";
        return token;
    }

    public String getUse_akomapalendrId() {
        if (TextUtils.isEmpty(userId)) return "";
        return userId;
    }

    public String getT_akomapalendype() {
        if (TextUtils.isEmpty(type)) return "";
        return type;
    }

    public boolean getIs_akomapalendAdSource() {
        if (TextUtils.isEmpty(isAdSource)) return false;
        return isAdSource.equalsIgnoreCase("YES");
    }

}
